#define NCLIB_MAIN
#include "register.cc"
using namespace noria;

#ifdef _WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

BOOL APIENTRY DllMain(HMODULE hModule,
	DWORD  ul_reason_for_call,
	LPVOID lpReserved
	)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
	{
		Activator::RegisterTypes("libnmm", RegisterTypes);
		break;
	}
	case DLL_THREAD_ATTACH: break;
	case DLL_THREAD_DETACH: break;
	case DLL_PROCESS_DETACH:
	{
		//Cleanup();
		break;
	}
	}
	return TRUE;
}
#else
#endif
